export PYTHONPATH=./zipformer:$PYTHONPATH
export CUDA_VISIBLE_DEVICES="0"
#./zipformer/streaming_decode.py \
#  --epoch 19 \
#  --avg 5 \
#  --causal 1 \
#  --chunk-size -1 \
#  --left-context-frames 256 \
#  --train-fbank-dir /home/work_nfs8/xlgeng/new_workspace/icefall/egs/multi_zh_en/ASR/gxl_data/3000h/fbank_common \
#  --valid-fbank-dir /home/work_nfs8/xlgeng/new_workspace/icefall/egs/multi_zh_en/ASR/gxl_data/3000h/fbank_common \
#  --test-parent-dir /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/gxl_data/test_family \
#  --train_prefix 3000h \
#  --valid_prefix 3000h \
#  --exp-dir /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/zipformer/exp_common_2 \
#  --decoding-method fast_beam_search \
#  --num-decode-streams 1000 \
#  --bpe-model /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/gxl_data/lang_bbpe_2000/bbpe.model \
#
#
#exit



# 对decode.py的一些阅读. output_dir是exp_dir/{decode_method}/ ;
./zipformer/decode.py \
    --epoch 20 \
    --avg 1 \
    --max-duration 300 \
    --decoding-method fast_beam_search_nbest \
    --beam 20.0 \
    --max-contexts 8 \
    --max-states 64 \
    --num-paths 200 \
    --nbest-scale 0.5 \
    --train-fbank-dir /home/work_nfs8/xlgeng/new_workspace/icefall/egs/multi_zh_en/ASR/gxl_data/3000h/fbank_common \
    --valid-fbank-dir /home/work_nfs8/xlgeng/new_workspace/icefall/egs/multi_zh_en/ASR/gxl_data/3000h/fbank_common \
    --test-parent-dir /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/gxl_data/test_family \
    --train_prefix 3000h \
    --valid_prefix 3000h \
    --bpe-model /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/gxl_data/lang_bbpe_2000/bbpe.model \
    --lang-dir /home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/gxl_data/lang_bbpe_2000 \
    --exp-dir /home/work_nfs11/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/icefall_assistant/en_cn/zipformer/exp_common_3 \
    --use-averaged-model false


